﻿using System;
using CID.Support;

namespace CID.Tests.Support
{
    public class FixedApplicationDateTimeProvider : IApplicationDateTimeProvider
    {
        private DateTime timestamp;
        
        public FixedApplicationDateTimeProvider(DateTime timestamp)
        {
            this.timestamp = timestamp;
        }

        public DateTime Now
        {
            get { return timestamp; }
        }

        public DateTime Today
        {
            get { return timestamp.Date; }
        }
    }
}
